/*
 * TOP SECRET Copyright 2006-2015 Transsion.com All right reserved. This software is the confidential and proprietary
 * information of Transsion.com ("Confidential Information"). You shall not disclose such Confidential Information and
 * shall use it only in accordance with the terms of the license agreement you entered into with Transsion.com.
 */
package com.yunji.framework_template.biz.crawler;

import com.yunji.framework_template.common.enumeration.NewsType;
import lombok.Builder;
import lombok.Data;

/**
 * ClassName:SourceType <br/>
 * Date: 2018年12月3日 上午10:04:07 <br/>
 * 
 * @author fenglibin1982@163.com
 * @Blog http://blog.csdn.net/fenglibing
 * @version
 * @see
 */
@Data
@Builder
public class SourceType {

    /**
     * 待爬取的资源URL
     */
    private String              url;
    /**
     * 新闻的类型
     */
    private NewsType            newsType;
    /**
     * URL校验器
     */
    private UrlValidator        urlValidator;
    /**
     * 用于指定当前新闻类型，通过具体新闻内容页，获取其中的图片的处理实现
     */
    private ContentImageHandler contentImageHandler;
    /**
     * 用于从A标签中获取标题的Handler
     */
    private TitleHandler        titleHandler;
}
